<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>js处理文件演示</title>
</head>

<body>

  <!-- accept用于过滤选择的文件类型 -->
  <input type="file" id="file" accept="image/*">

  <script type="module" src="./h2.js"></script>
</body>

</html>